Am I a bad girlfriend or does he have a problem?

So I was at my boyfriend house (we are both 22 and we live with our family) and I was there for 3 days and everything was fine. But today he started to act weird because of a video game that he play with others. He lost something there.. a battle or something and he was getting really nervous for no reason. After that I told him to do something in the room and he starting doing it but with such an aggresion.. throwing things and even hurting himself in the process, by mistake. Then he took a nap and I was spending time on my phone or with his little brother because in the end I was at his house and it was kind of weird to me to be in this situation with him.. So I was waiting for him to wake up, hoppelly more calm. But he woke up the same.. So I was thinking that maybe we can talk about what is actually bothering him, so I told him so maybe go for a walk. He said ok to that but then.. while playing that game he starting to swear and then beat the keyboard with his fists. My heart was raicing then and I was so scared that I started to cry.. He didn't touch me but only by his attitude I was so scared and afraid of him. I told him to give me a ride home. He did give me a ride home and he said only that he had a hard day and it happens. Now my question is: Do you think that it was better to stay and talk to him? Maybe be more supportive instead of going home? Or it's better that I gave him space and time to calm down and be by himself for a time? I m sorry for the language mistakes that I made, I hope you understand tho. Thank you all!
Am I a bad girlfriend or does he have a problem?
Post Opinion