I tried these parameters, but it didn't help:
gpu_mem=320
force_turbo-0
hdmi_ignore_edid=0xa5000080
# I have no idea what 0xa5000080 means
disable_overscan=1
framebuffer_width=1920
framebuffer_height=1080
hdmi_force_hotplug=1
hdmi_group=1
hdmi_mode=16
hdmi_ignore_cec=1
dtparam=audio=on
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
Also tried the other mode with 50hz, but screen still stayed black.
Have removed almost everything and put tvservice -p im autostart.sh and it keeps working at 1080p.