How do you know when to stop Breastfeeding

My baby never actually latched. He was in the NICU for 2 weeks. I exclusively pump and make enough for him to take 100% Breastmilk from a bottle and have frozen 500 oz. he is now 9 weeks. I just feel like these hormones are making me crazy and I don’t know when to stop😭 I feel like such a bad mom being selfish and stopping. Idk what to do.