Browser Hangs with End Process Error

Hello. I was just surfing the internet when a problem occurred.
A certain error message is telling me to end the process or something like that.
So I just hit that button. Then after that, I can’t be able to open any browser at all.
I tried restarting my computer, and it helped. But again the problem persisted.
The same error came out again.
So I restarted my computer again and then it worked.
So therefore I conclude that I could not use the internet unless I restart my computer.
Then I could not close any browser because it would make those errors come out again.
Any idea why this happened?
