There are a few different ways to ensure high availability when using SQS.
One way is to create multiple queues and spread the load across them.
Another way is to use Amazon SQS Extended Client Library for Java which allows you to perform failover operations.
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-resilience.html