I am having the same issue with Drupal 9.3.22, and none of the proposed solutions worked.
I tried to fix the code as in the patch (as the latest patch won't apply), but the same issue is still there. Any advice?
I have also created one issue but did not get any response on the same https://www.drupal.org/project/gutenberg/issues/3343392
Contribution Issue Link