[Help] Creating System of nailing objects into walls limiting their movement

The game I am working on has a system where the player can interact/grab a piece of wood and then barricade a window by nailing it to the wall.

What I have now is a hammer that spawns an actor, being the nail, wherever you hit the hammer.
I’m not sure how to go about making the piece of wood have a constraint in the area the nail is at. So when the player lets go of the piece of wood it will have simulated physics and will swing where the nail is hammered into it.

With the nail having its own collision it just makes the board freak out and jumps around. Any help or guidance is super appreciated.