Mortified and rejected(please give me some advice)

I’m really embarrassed right now I’m 21 years old with crippling social anxiety and I’m leaving my first job so I was a little awkward and didn’t know if I should go in for a hug or just say goodbye, one of coworkers initiated the hug and I hugged them and then the next coworker (male) hugged me and that was fine then I went to hug my other 2 coworkers because I didn’t want them to feel left out, bare in mind I wasn’t close with them but since we were all women around the same age I thought it would be okay and the first one rejected me in front of everyone and then the next one said don’t you dare hug me. She said it while laughing but im absolutely mortified now and I just left awkwardly. I’ve been crying about it because im so sensitive to rejection and I’ve got a few more days before I leave on shift with those two coworkers and I just have so much embarrassment around the whole situation .