Simple pendulum simulation gives unexpected results

Godot Version

4.2.1. (Mono)

Question

I tried to make a simulation of the simple pendulum based on its differential equation (θ’'=(g/L)*Sin(θ)), but when I run the simulation, the pendulum surpasses its initial phase and starts spinning like crazy.
Have I coded the differential equation wrong?


Download my project: https://cdn.discordapp.com/attachments/568817290099949588/1228302779865370634/Pendulum.zip?ex=662b8d1b&is=6619181b&hm=2c708dbd6648a4251c907dbfe427da6f89673bf13dacfdf5343c3cc295f94bc3&