I've been trying to install Ubuntu on my computer for a long time. I have an HP Pavilion 15-cb005nt device with Windows 10 64-bit installed. I tried to install Ubuntu 18.04 and 19.10 on the same computer before. I had the same problem. At the Installation type screen I choose the Erase the entire disk and install Ubuntu option. It comes to the loading screen. After half of it says copy to disk is finished wait, and the computer crashes in the meantime.
I looked at the questions asked HP support. The following suggestion was made to a person who encountered the same problem. Enter the BIOS. Legacy mode is on. Disable Secure Boot. The same as my BIOS settings, but there was no solution and it got stuck at the same place. I have an Nvidia 1050 graphics card, 240GB SSD and 1TB HDD. I got the same error when I wanted to install it on both disks. I haven't been able to load Ubuntu for 1 years.