The most important thing here is to act fast. According to Instagram, it becomes almost impossible to recover your account after 14 weeks since the moment you lose access to it.
If you notice that you’re logged out of your Instagram account and can’t seem to log back in, follow the steps to recover the hacked Instagram account.