If DaVinci Resolve was showing “Not Responding” while using about 6.36 GB of memory, that number by itself does not mean Resolve was using too much RAM.
The same applies to the swap file you noticed.
macOS routinely uses virtual memory and can move some data between RAM and the Mac's startup disk when needed.
Swap Used in Activity Monitor simply tells you how much storage is currently being used for that purpose.
Having some swap does not, by itself, mean there is a problem. (Apple — View memory usage in Activity Monitor)
This also helps explain why the problem could appear today even though you have been editing the same project for 15 days.
The memory demands are not necessarily the same throughout a project or from one moment to the next.
You may have reached a more demanding section of the timeline, added effects or other processing, had more applications running, or simply reached a point where the workload temporarily required more resources.
That does not mean you necessarily did anything wrong.
The key thing to look at is Memory Pressure, rather than simply seeing that swap exists.
Apple says Memory Pressure reflects how efficiently your Mac is handling memory and takes things such as available memory, compressed memory, cached files, wired memory, and the rate of swapping into account.
If Memory Pressure was high when Resolve stopped responding, memory pressure could have been a contributing factor.
If it remained green, memory would be less likely to be the main cause. (Apple — View memory usage in Activity Monitor)
Your 4K footage and slow hard drive are also worth considering.
The external drive does not cause macOS to use swap, but a slow drive can make it harder for Resolve to read and write large video files quickly.
If the drive was heavily occupied at the same time as memory, CPU, or GPU resources were under pressure, that could contribute to Resolve becoming unresponsive.
I would not try to disable or manually remove the swap files.
They’ are part of normal macOS memory management. Instead, we should find out which resource was actually under pressure when the freeze occurred.
Activity Monitor's Memory, CPU, and Disk information can help distinguish a memory problem from a storage, processor, or Resolve-specific problem. (Apple — Activity Monitor User Guide)
So, based on what we know so far, there is ’no reason to assume you did something wrong.
The fact that this happened today rather than during the previous 15 days does not, by itself, tell us what caused it.
The Activity Monitor readings from around the time of the freeze should give us the answer.