That log snippet shows two different PIDs. Check the logs to see the complete path that process 1876 took after it did the insert at 2024-02-19 15:21:54.850 +08
Make sure you are not using prepared transactions. This should return 0:
select current_setting('max_prepared_transactions');
Cheers,
Greg