(Usually human error....an oops moment ! ....we all have them !)
To add to this, Linux usually runs just fine -- until you go screwing with it. Avoid installing things you don't need. If there's a major dependency issue, don't keep going. Use software that's from reputable sources, especially the software that's already in the repositories and easy to install. Don't go tinkering with system settings. Keep it updated to a T, updating as soon as you can. (We regular users don't have to test things before moving them into production.)
That sort of stuff.
Now, of course, you're going to go screwing with things. That's okay. That's normal. We didn't pick Linux because we like what comes out of the box. (Well, most of us didn't.)
You're going to go screwing with things. In fact, you should go screwing with things.
Learn to back up your data. Learn to make sure your backup method works. Get a little familiar with things, and then screw with things all you want. We won't charge you money for installing the OS again. That'll be just as free as it was the first time.
I call it 'learning by breaking'. You screw with things, and they break. You learn to fix those things and, importantly, how to avoid those things.
It's okay to break your system. That's how many lessons are learned.
Also, one big tip for you... Never run a command that you don't understand. When rooting through the internet for a solution, you'll come across all sorts of commands that are easy to copy and paste. Know what those commands are going to do before running them on your system.
While many of us don't like AI, that's something AI is actually good for. 'AI, please tell me what this command will do to my computer:
enter command.' It's actually pretty good at that. It was one of the first tests I gave to the modern AI models out there.
But, there's always the man page. That's the documentation you want for truly knowing what's going on with the commands you're entering into the terminal.
Oh, and don't be afraid of the terminal. Yes, I gave you a dire warning. It's okay. It won't bite, and you'll already know how to restore the data you backed up.