3D view sometimes empty when changing settings

Sometimes the 3D view stops working for some devices, this usually happens when locking that device into view with F.
When this happens, the rest of the layout following that device stops working as well, displaying a red square next to their names.
Sometimes this gets fixed when disabling and reenabling the 1st device in order which isn’t working