Using SetControlRotation in plugin crashes application

I am creating plugin that is constantly receiving data using tcp listener, which is giving me pitch, roll, and yaw numbers from android phone devices sensors gyroscope etc.These numbers are stored in UStruct using FJsonObjectConverter::JsonArrayStringToUStruct.

Then in each itteration i am using GetWorld()->GetFirstPlayerController() to get controller.

float pitch = UstructObject.pitch;
float roll = UstructObject.roll;
float yaw = UstructObject.yaw;

APlayerController* controller =GetWorld()->GetFirstPlayerController();

FRotator* newRotation = new FRotator( pitch, roll, yaw);

**controller->SetControlRotation(*newRotation);**//here occurs error in debugger

When i put my plugin object in game and run application it causes Access Violation Error and I don’t understand why.

EDIT
Here is exception from debugger console:

Exception thrown at 0x00007FFE043EBFD8 (UE4Editor-Core.dll) in UE4Editor.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x0000000EF8D03000).

Unhandled exception at 0x00007FFE3008386B (ucrtbase.dll) in UE4Editor.exe: 0xC0000005: Access violation writing location 0x000000D653350FF8.

I was also trying to use RotationInput, which moves camera without crashing, but rotation is crazy andi can’t figure out math behind it, as I am not very familiar with how these numbers should be proccessed.

In result i want to use mobile device as head mounted display, using my 3rd part application to send these data.

Are you sure controller is not nullptr?

Yes, controller is not nullptr, as when I use it with set rotation input it moves