This is not exactly a "fix", but is another check.
Open System Preferences, then the Displays pane.
Click the Night Shift tab, then choose OFF from the Schedule drop-down list.
That will turn the Night Shift feature off - which means that your display color-temperature does not automatically change during night time hours.
Assuming that night shift is causing your issue, you should not see the black rectangle. (and you might be OK without the automatic daily color shift
)