Pm.sample fails with multiple errors on Mac M2

[Update] Running with terminal always works, but running with IDE as well as Jupyter is unstable, i.e. sometimes works but sometimes doesn’t. Can you think of a potential reason for this latency and differene between terminal and inconsistent runs with IDE?