System.AccessViolationException with ACCPAC.

Hello Experts,

Facing the below error while accessing the ACCPAC API.

System.AccessViolationException
at AccpacCOMSVR.AccpacSvrViewClass.Process()
at ACCPAC.Advantage.Server.View.Process(FieldValue[], Int32[])

We have a .Net based windows service that communicates with Sage 300 via ACCPAC but this error is crashing the windows service.

Sage Version: 2019 PU2

Your help is much appreciated.

Thanks, Yash