The query that you highlighted for me ran for 8 minutes and 35 seconds before the error message. With the amount of data you were going through, the upsizing would certainly help. You can also look at optimizing your query if it's churning through tons of data unnecessarily.