Respawn anchor is considered obstructed if all its sides are covered or air
The bug
When a respawn anchor is covered on all sides (including diagonals) either with solid blocks or air, it will count as being obstructed, even if there would be space above the anchor.