The easiest correct way to allocate a new instance of a UObject is to use NewObject:
UQuizQuestion* NewQuestion = NewObject<UQuizQuestion>();
This will ensure your object is created in the right package and set up correctly. There’s some information about UObject creation here.