holy **** this actually worked, I've been trying to figure this out for weeks
backstory for me, I upgraded from win8 aswell but was still using bios and after the upgrade moved to uefi manually and also created the gpt partition by hand, so those flags were never set properly
thankyou so much, I was really close to just reinstalling my whole system