I’ve run into this quite often.
Although it seems counter-intuitive, I’ve found the forward declaration often works when including the SubclassOf.h header. Still not certain as to why.
#include "Templates/SubclassOf.h"
class USomeType;
You may know already, but if not - you can only forward-declare pointers to types.