I agree with KoachCSR and mk3223. You should confirm with the valve manufacturer that there will be no adverse effects from installing the valve at an odd angle rotation. IMO, an effort should always be made to orient the actuator vertically, and if relocating is acceptable, I would try that approach.
With this valve being socket welded, will there be breakout flanges to provide maintenance? If so, I would also suggest, like mk3223, to rotate at a more acceptable angle for that size & class. A normal straddle for a 2" 2500# flange would be 45 degrees so I would suggest that over a 40 degree angle, as long as it has been agreed that the actuator can be rotated.
Can you provide a little more detail about the "space constraints"? Is it an overhead bypass? Is it an existing line? Can you include a few more elbows in the design to turn away from the constraint? Is this being shop fabricated or field ran?