Windows 10 Universal Build crash on mouse click

Hello!
I’ve recently updated game I am working on to Cocos2d-x 3.8.1 and I am trying to port it to Windows 10 universal build.
Desktop version works fine but I also need mobile version displayed in different manner (portrait ran on mobile emulator).
To achieve it I added DeviceFamily-Mobile directory to the project and inside it created another OpenGLESPage.xaml (this one is without .cpp as in theory it should reuse original cpp code).

Visually it works but if I click/touch there is a crash:

Catastrophic failure 0x8000ffff in cocos2d::GLViewImpl::OnPointerPressed line 251
called from cocos2d::PointerEvent::execute() line 58

Any ideas how to fix it? It seems that it is generic crash on win 10 mobile
thank you!