So, the ‘Invalid State’ error caused due to state parameter missing or not matching from initial value.
Here is few community post that could help you: