and the HDMI is not working, meaning that when I connect any screen either nothing happens or, when it happens, the system freezes and the only solution I found so far is to physically reboot it by holding the power button.
Have you installed the nvidia driver from rpmfusion?
If not then please do so and try again.
On most laptops the hdmi port is connected to the dGPU (nvidia) and without the proper drivers wierd things happen.
I don’t know, I have just found that sudo dnf install _ gives me Failed to download metadata (metalink: "https://mirrors.fedoraproject.org/metalink?repo=updates-released-f42&arch=x86_64") for repository "updates": Cannot download, all mirrors were already tried without success where _ stands for any package I try to install.
About the display: I found that if I connect a USB-C to VGA converter and I boot the PC with that connected, then it works until I disconnect the display from the computer, in that moment it freezes and only a hard reboot brings it back.
It isn’t clear if the kernel has crashed or just the display. When the systen “freezes” do keyboard status lights still respond?
Do you have way to connect to the system with ssh? This may allow you to run journalctl --follow to collect details after the screen goes blank that might help resolve the issue. Failing that, booting a Live USB may allow you to view the journal in journalctl -D <mount_location>/var/logs/journal/<random_string> ... after mounting the system drive. You should also be able to go back in time to see boots that were using HDMI.