Hello Gabriel H.1
Welcome to Microsoft Community.
Regarding to your information I assume that you have some issues after you hot unplug your external SSD.
Is the "hot plug" you mentioned refer to disconnecting the hard disk directly? It seems that the partition table of your hard disk is experiencing issues.
If you don't have any important data, I suggest reinstalling your system using installation media.
However, if you have important data, I recommend contacting a data recovery company for further assistance.
You can find instructions on how to install Windows 10/11 in the following article by MVP Andre:
How to: Perform a Custom Installation of Windows 11 and Windows 10 - Microsoft Community
If there is anything not clear, please do not hesitate to let me know.
Best Regards,
Tommy-MSFT | Microsoft Community Support Specialist