My try resolving:
I download source for x265 v3.5.0.1 and build needed DLL use MS VC++ 2017 as MinSizeRel x64, MinSizeRel x86, Release x64 and Release x86 configuration and past ready libx265.dll in to XnViewMP dir.
Test run results:
If use x86-64 DLL then start display error messages "Entry point for procedure x265_api_get_192 not found in to libx264.dll", but XnViewP is started after press OK;
If use x86 DLL XnViewMP started w/o any messages;
If use old DLL version 1.4.0.0 x86 (downloaded) XnViewMP started w/o any messages;
This dependence's - libx265.dll and libx265e.dll required heif.dll, but work only if dependence's x86 (i386)...

UPD:
FIXED in to XnViewMP-win-x64.exe build at 17.09.2021 included ./plugins/libx265.dll , SHA-256 (XnViewMP-win-x64.exe) = 54f471fe6094e3d73ff3fc27675b1fdda0d47cdeca1641289babcce712b78080