SOLVED: The solution was pretty obvious. I installed and used the wrong version of the Revit export plugin (the one for Unreal Engine 5). Switching to the one for 4.27.2 solved the issue. You need to manually select Archived Versions on the download page and select the version of Unreal Engine you want the data going into.