If your transaction’s status was set to ‘failed’, it means it made it to the mining pool but was rejected. There is a possibility that the gas fees you set were too low for the miner to accept or that your balance was insufficient.
Check the recent successful transactions across the Ethereum network for average gas fees that will get your transactions mined successfully.
If a failed transaction was a token transfer, you will receive the transferred amount back. However, the fees will be withheld by the network.