The link you followed has expired when updating a coupon

When I try to update a WooCommerce coupon, I’m getting an error message “The link you followed has expired” and the changes aren’t saved.