I fixed the error by going into recovery mode -> command prompt and entering this commands:
diskpart
list disk
sel disk 0 (your disk that has windows installed)
list volume
select volume 2 (your boot volume)
set id=C12A7328-F81F-11D2-BA4B-00A0C93EC93B
gpt attributes=0x0000000000000001
assign letter=S
exit
bcdboot C:\Windows /s S: /f UEFI i searched a lot and i couldn't find somewhere that suggested this solution so I've decided to post it here to help others who may have the same problem as me