Stability issue with behavioral Capacitor

I reproduced your simulation and change the capacitor definition in the form of Q= Cdebye * x and I think the result is much better. Perhaps you can try that. Best regards