To clutch at straws
To try anything in a very difficult situation with little chance of success
e.g. because of COVID-19 restrictions, my boss had to lose two thirds of his restaurant staff. I Offered to take a pay cut to try to save my job but it was no use; I was clutching at straws.