My Computer Keeps Blue Screening Windows 10

My computer keeps blue screening and I’m not sure what to do about it. Windows 10 has been acting up a lot lately and I don’t know if it’s the operating system or my computer itself. Every time my computer turns on, it starts up fine and then after a few minutes it blue screens. I’ve tried restarting it and even doing a hard reset, but nothing seems to work. I’m not sure if I should take it to a technician or just buy a new computer. Can anyone help me?

How do I get rid of the blue screen