That happens to everyone and it's usually not about your content quality. People unfollow for random reasons like cleaning up their feed or just losing interest in certain topics. The annoying part is Instagram doesn't tell you
who unfollow so you're left wondering what went wrong. I used to stress about it until I started tracking my followers properly. Now I can see exactly who leaves and when it happens. Most of the time it's accounts that weren't really engaged anyway or people doing the follow-unfollow game. Once you see the actual patterns you realize it's not personal and you can focus on the followers who actually interact with your posts