I just got yelled at by my professor

I was in my choir class and I somehow forgot the hard copy of one of our songs so I pulled up the PDF version on my phone. Granted, I should've let him know, but by the time I found out I'd forgotten it, we were already starting to rehearse it and I get really scared to talk in front of the class. My professor isn't mean or anything, he's very kind and one of my favorites. Mid rehearsal, he yells at me to put my phone away (mid song--- everyone kept singing) and I got really scared. I HATE being scolded, *especially* in front of a crowd. I didn't turn off my phone because I wanted to keep participating, so after rehearsal was over, I confronted my professor and said "I just wanted to apologize for being on my phone-- I actually somehow forgot my music for (name of song) so I pulled up the PDF version online" and he looked so dumbfounded and said "Oh!! I'm so sorry for yelling at you! Don't worry about it, you did the right thing by pulling up the music." And I was visibly shaking (he already knows I have anxiety) and he said "You could have just raised your hand and been like 'yo, professor, I forgot my music so I'm reading it off of my phone'" and I said "I know, I'm sorry-- by the time I realized I didn't have it we were already rehearsing and I was scared to say anything in front of everyone" and then he said "It's okay, you don't have to have anxiety about it!" and idk gjhgsdf

I know it was a misunderstanding and I was at fault, but everything is okay now and I still feel like I just broke the law or something. When I got out to my car after rehearsal, I completely broke down for no reason; I just feel like I was soooo disrespectful of him even though I wasn't texting or anything and I really didn't do anything wrong. I literally got home like 20 minutes ago and I'm still all shaky and ughhhhh

Everything is literally fine but I feel like such a bad kid