I’m sorry, but it seems like you’re playing with tools and code you don’t understand. First, this has nothing in common with a virus. That is either a click bait or you don’t understand what it is you are looking at. If it crashes your computer, it is simply badly written code. Any programmer has done something similarly (in their area of domain, ie not necessarily able to crash a computer).
For the next time, I would recommend you to use the AI to explain the code and ask questions about it.
Agree. It is unfortunate however, that when being impossibly rich and protected for the rest of your life, you still work on how to squeeze the most out of humanity instead of focusing on something greater.