How to change PhysicsConstraintComponent target orientation with c++ while running

I am currently trying to create a blueprint consisting of a base and a arm tied with a physics constraint component and using angular motor to make rotate to a target angle. When placed down and ran the blueprint works as expected and as long as I didn’t edit the target angle while running everything worked fine. Using C++ I made an actor component to put within it and I attempted to create a rotator variable in the component that would change the rotator target in the constraint. Though when I tested messing with these variables in play the arm would just fall off the base as soon as I changed any of the variables in any way through the actor component. I’ve tried many solutions but just couldn’t figure out why it did this as before I changed any of the variables within the actor component it would work as normal with the default angular motor settings set to 0,0,0. Through later testing I noticed this happens when I change any variable within any object in the blueprint, so now I’m wondering why does this happen and how can I fix my issue?