I added the DataTable include to my module’s PCH file (Plugins/Victory/Source/VictoryCore/Private/VictoryCorePrivatePCH.h) instead of modifying engine code:
#include "Engine/DataTable.h"
Alternatively, you could probably include it before you include GameplayTagsManager, but is right that the correct fix is to properly include in GameplayTags code.