Seems like the release builds don't have the preprocessor set to ignore hashset deprecations.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.25.28610\include\hash_set(22,1): Error C1189: #error: <hash_set> is deprecated and will be REMOVED. Please use <unordered_set>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
Seems like the release builds don't have the preprocessor set to ignore hashset deprecations.