Start by downloading and installing Latency Monitor, assuming you are running Windows.
https://resplendence.com/latencymon
This application will indicate who the culprit is that's interrupting Pianoteq because its purpose is to show what's causing issues with audio.
You start Latency Monitor first then set it to scan while you play your digital piano normally through Pianoteq.
When a stutter or one of those annoying big pauses occurrs, the software will display a red line with information on what is causing the problem.
With that information in hand, you can then attempt to eliminate it.
The biggest culprits I found were:
Dell's noisy Support Agent and accompanying services.
I stopped the services for Support Agent and I had fewer issues afterwards on one machine but additional issues on another.
Recently, I set up a dedicated hand-me-down Dell desktop running Windows 10 and gave it the same treatment but still had issues with big pauses and stutters. This could be that this system uses an older i7 CPU and has less RAM than my other higher-end desktop.
These stutters and glitches, though didn't show anything with Latency Monitor, and in order to find who was causing problems this time around, I checked the Event Viewer every time a pause or hiccup occurred. These always correlated with Windows checking something on the network whether it's the network in general for any shares, or the internet even though I do not browse on this machine at all except to check for software updates. The solution for this is to disable the network in Windows and not by pulling the cable from the machine. Disconnecting the cable did nothing because Windows kept checking anyway. With both a wireless and wired connection on this machine, I only use the wired anyway, I disabled both and that helped.
With you running a laptop, this may be a bit more difficult, though. In addition to the above-mentioned solutions for my desktops, you may have to disable other things. On many laptops and other bundled pre-built PCs such as those from Dell, and HP, among others, they install a lot of other unnecessary garbage and usually the worst antivirus on the market. McAfee is very system heavy and can cause all kinds of performance issues in general. For both Dell desktops, that was the first thing I uninstalled and used the built-in Windows Defender. Once I did that the machine performance overall was like night and day.