Toon Boom Harmony Premium 21 lags on Wacom

This is my first time posting, but I need serious help with lagging problems I am having. For context, I am using a MacBook with Ventura OS. I am using a Wacom Cintiq and have Harmony Premium 21.

Harmony seems to work fine whenever I am on my computer. But when I am using my Wacom, it lags here and there. It would work for a few minutes and then lag really badly.

I initially thought my computer or my Wacom was the problem. So I updated my Wacom driver and restarted my computer. But that didn’t do anything, so I tried using drawing applications on the Wacom when toon boom started lagging.

Then I noticed Photoshop and other applications worked fine. Harmony was the only one having a problem. I couldn’t find any other solutions online to this problem.

It would be great if someone could help me.