Unreal crashes with error: libue4editor-inptcore.so!_ztvn10__cxxabiv117__class_type_infoE(+0x10)

My project crashes on a level with an actor using a third party library.

The info says:
libue4editor-inptcore.so!_ztvn10__cxxabiv117__class_type_infoE(+0x10).

I suspect it is related to the modification I did to use C++ 17 as compiling standard, as it is required by the third party library.

With a quick search online, I found posts like these:
Post 1, post 2, post 3.

However, I’m not sure how to apply such fixes in the Unreal.

Unreal version: 4.25-plus
IDE: Visual Studio Code.

Any help is appreciated!