Have you tried using RDS Performance Insights to debug what could be your bottleneck?
This post from AWS goes quite in depth on how to troubleshoot this kind of issue: https://aws.amazon.com/blogs/database/optimized-bulk-loading-in-amazon-rds-for-postgresql/
For instance increasing IOPS of the underlying EBS volume or adjusting the parameter group settings.