Transaction won't move

So I was trying to buy an NFT asset, but I messed around with the Gas limit and forgot to change it back, so the transaction ran out of gas as expected. But the transaction won’t move out my pending. So I just went ahead and put the transaction through again with the proper gas limit and now both transactions have failed and i don’t know how to get both of them out of my wallet to try again