Well,it might be that the obstacle variable is not valid.you could try set the variable on every collision Begin overlap or set it at character begin play.
But screw that…I think we maybe overthinking too much.
Why not just:

Set the collision box to block player