I recently bought a HP Spectre x360 laptop with Windows 10 on it. I manually created a partition for it using Windows. I then installed Ubuntu 18.04.02 by choosing the 'Install Ubuntu alongside Windows' option. I checked that Windows and Ubuntu both still work well.
My problem is that when I turn the computer on, it shows the GRUB menu and freezes. No key commands help. Now I can only boot either OS by using F9 - Change boot order.
Things I have tried: Ensuring that Legacy Boot is off, Secure boot off, and fast boot off Reinstalling GRUB Running boot-repair
Boot-repair generated the info shown in this link: http://paste.ubuntu.com/p/VG5gZj83D4/
I am aware that this question is similar to this one: Grub freezes when naturally booting, but works when selected from EFI menu, but that person seems not to have found a solution.
I think it could have something to do with the way I partitioned the space for Ubuntu but I have no idea how to fix it.