City Sample project on UE5.5.4 and UE5.6.1 has issues restricting the build options.

Tried as you said, but the problem still remains the same: