So it seems the issue is caused by the SN-DBS version that is installed on my PC.
I figured out after looking at this other thread : Problems while building Tools - Development / Programming & Scripting - Epic Developer Community Forums (unrealengine.com)
I can’t change the version, so I disabled SN-DBS when building UnrealEngine using the BuildConfiguration.xml file by setting bAllowSNDBS to false.