Cannot package plugin due to "Value cannot be null. (Parameter 'element')"

For me, this was caused by the Nvidia Omniverse plugin. The workaround in [UBT Bug] No longer able to compile plugins in standalone since 5.3 - #11 by Sam_Swain worked for me.