Create a new trigger. Select the trigger type — After order is created. Specify the required time period.
Add a task to the trigger. Specify the condition — the status is "Pending". Add an action — change the status to "Cancelled". You will get this configuration: