I have changed the instance type with the help of AWS Lambda and EventBridge scheduler (Cron job).
The only cons is its downtime of around 30 sec.