Sounds playing out of tune during recording on cubase 14

It often happens that while I’m playing a musical phrase with a sound, whether it’s a sound from the Omnisphere or Kontakt banks, the tone starts off correctly and then goes off the rails and plays out of tune either half a tone above or below or even a quarter tone with an unpleasant modulation. I’m wondering where this is coming from, if it’s this VST2 to VST3 thing and how to solve this problem that I already had on Cubase 12 on I-Mac and I’ve just bought a mini Mac with cubase 14 and I have the same problem/ If anyone has the answer and the solution. Thanks