Thank you all for your wonderful replies

Yes, it's something everyone goes through, and it's a part of life. Even though it sucks, it's a good learning experience. I'm OK now, it was just an in the moment kind of thing. It's bound to happen again, I'm sure. I'm putting together list of all the things I need to remind myself of when it does happen so I'll hopefully be better prepared next time.