Also make sure to check the output log to see which class is used as the Owner in CreateWidget().
I thought my UWidget derived class was causing this error because I call CreateWidget() from this class, but the error actually came from my GameNetworkManager class which also called CreateWidget().