I was going to say that sin was anything that violates God’s law but your definition is better. It really isn’t that complicated.
I view sin as anything that hinders us in performing Jesus’ two commandments...
Love God......
Love our neighbors as ourselves... (Keep in mind self Love is critically important as without it we create a shield with our guilt that blocks us from accepting God’s unconditional Love.)
Note the common word in these two commandments is LOVE