I think you have corrupted what I would refer to as the Master Boot Record (MBR) except yours is a modern motherboard that uses a UEFI BIOS. See here click here for an explanation of where Boot files are now stored. I suggest a fresh install of W10 especially as Quote "I have tried some things, like formating my drives through the windows stick or trying to install it on an unused drive but it doesn't work, it shows me error messages." You may need to create a new EFI partition.
Once W10 is installed and running, Google for a guide to adding Ubuntu and dual booting.