Have you edited the add-on.xml manually ?
From your error, it seems you are using the FSX version of the program in P3D V5, which surely won't work or, at least, might have worked years ago, but right now you really need to use the proper 64 bit version, which is the one the installer installs, unless you edited the add-on.xml file yourself.