Go to the BP_PlayerBuildingComponent, then open the PreviewLocation function, then open the HitSurfaceRotation collapsed node, delete the code in it and add the nodes shown in the image below.

Make sure you set the Z value to 1 on the Rotator from Axis and Angle node.

Then copy the video below in the BP_PlayerBuildingComponent.