Torch.jit.load fails in debug mode on windows but works in release mode

I am running PyTorch under c++ windows 10 visual studio 2019.
Loading and executing model is working properly in Release mode.
I am linking with torch_cpu and c10 libraries from the Release TorchLib.
However, when linking with corresponding libraries from Debug TorchLib, although compilation is working, TorchLib fails loading the traced model.
(I downloaded both release and debug lib from Start Locally | PyTorch)
The error message thrown by Torchlib is “Open File Failed”.
The same problem was reported by another user in Windows 10 VS 2017 - torch::jit::load works in debug mode, but fails in release mode · Issue #17682 · pytorch/pytorch · GitHub
Is there an issue with running in debug mode under windows?