Checks if an error is a timeout/abort error
The error to check (using unknown for maximum compatibility)
Checks if an error is a timeout/abort error