Depression changes my SO..

Is this normal..? I just want to hear from people who are either depressed or have a depressed SO. My boyfriend has a history of depression.. ran out of his Zoloft and couldn’t get it refilled for a week or two. He turned into a completely different person. I honestly think he is/was withdrawing.. it started with him being less affectionate. I noticed he was more irritable with me and his daughter. Then he started isolating; then he basically wanted nothing to do with me and broke up with me. All in ONE week. Before that, he told me he loved me and he was so different, it’s only been a day or two and he’s already trying to talk to me here and there. He keeps saying he feels lost and is confused and that he really does love me but doesn’t know what to do. I am equally confused. I understand if he’d wanted space or time.:. Maybe a break from hanging out but he literally broke up with me. Help?! Do I try to hang on or move on?

Update: I just wanna say thank you for everyone who shared their experiences... it makes more sense to me and when he broke up with me, he kept saying I didn’t do anything wrong and I was a great person but he wasn’t feeling what he did before. At the same time, he said he still loves me, it was utterly confusing and since then, he still tries to talk to me and keeps saying he needs time.. I’m starting to believe that this is truly his depression talking and eventually he’ll go back to normal. He keeps insisting he loves me even though we aren’t together and he doesn’t need to pretend anymore if he doesn’t.. I have a history of bad relationships so it’s been hard for me to trust this process. I have an anxiety disorder so I feel way too much and it’s hard for me to imagine feeling the opposite. Hearing it from others makes me feel much better so thank you!!