CRT validation error when calling third party library function in constructor

I’m developing a custom plugin where I need to call a function in a third party library in C at construction time but for some reason I’m unable to build for Android due to a CRT validation error for illegal argument at the location of that call. This code works without any issues when building and running in the editor on Windows platform but I’m deploying to Android (Oculus Quest). The constructor where I’m calling the function is for a class derived of UActorComponent and the C function returns a pointer that I need to assign to a member of that same UActorComponent class. I’ve tried calling it in both the body of the constructor or in the initializer list but I get the same result. Building in Visual Studio produces no errors. What is CRT validation anyways?

Thanks!