Audio randomly loses sync

I am encountering a weird problem. I am working on the latest release of DaVinci resolve (17.2) on Mac Mini M1. I have no problem editing my videos and sync them with the audio I am externally recording. The issue I am encountering is that audio loses sync with the video randomly. If I restart DaVinci several times (usually one restart solves the problem) the audio comes back in sync. There are times that restarting resolve does not solve my problem and I need to restart the whole machine. After restarting mac mini, everything seems OK.
I encounter the same problem and on another machine (Windows 10 - Same version of DaVinci resolve). I record my videos in DNxHD and their duration may exceed the 1 hour of recording. Does anybody know what the reason behind this problem is?
I encounter the same problem and on another machine (Windows 10 - Same version of DaVinci resolve). I record my videos in DNxHD and their duration may exceed the 1 hour of recording. Does anybody know what the reason behind this problem is?