A310 not following flight plan

I am having a similar problem. During take off I noticed the flaps moving from 15/15 to 15/0. This was a command that was not initiated by me. While this change was noticeable on the cockpit indicator the flaps lever did not move. As soon as the airplane was airborne that indicator was showing the flaps moving back to 15/15. The autopilot was engaged properly and then the plane followed its path for almost 60% of the flight. Then with no warning it stopped following the flight plan and auto pilot got disconnected. Profile and Nav were engaged and even trying the “Direct to” feature as I was trying to set the plane back on track I was not able to fix this. Meaning the plane was moving to the new waypoint as set by the “Direct to” just to veer off its course again. Also since this behaviour started, I noticed the plane would not follow the set altitude.

Did another flight test today and the same issue. This time shorty after reaching top of climb the auto pilot got disconnected. All attempts to engage it back on did not work out. Trying heading select to put the plane back on track did not work either. To fix this issue I tried to set to off in Assistance mode piloting auto rudder, assisted yoke, ai auto trim and assisted controller sensitivity. No luck either. I am playing this game on PC and using an Xbox controller that was set to default. No add are installed.

Appreciate any ideas. I also emailed inibuilds but they did not repy