No you haven't done a single thing wrong. It is definitely a common age/developmental thing that happens at around 4 months of age. My DS was exactly your DS's age when he turned from being an angel baby to one that woke up numerous times overnight and was much more clingy and unsettled during the day. The good news is that it does pass. AF returning could definitely play a role too.

It will get better again