The latest formal release is version 5.2.1 available from the website.
It’s ok to stay with 5.1.5 if you really want to but this may interest you:
Krita Monthly Update – Edition 09
Does it happen to the Basic-1 brush preset? Please try that and report if it does.
At first sight, it looks like the pressure signal from the tablet/stylus has strange regular noise on it.
Please do Settings → Configure Krita → Tablet settings, then press Open Tablet Tester.
Draw a short stroke on the grid area at low pressure so that tablet event records are shown on the right pane of the tester window.
Copy and paste a representative sample of those event messages to a reply here.
Are you saying that krita and the tablet work ok on your Windows laptop?
If it works with your Windows laptop but not on macOS, have you properly installed the latest drivers for macOS?