I’m also getting a lot more spam after upgrading to 5.1 of Contact Form 7 and using it’s Google reCaptcha V3.
Using Google reCaptcha V2 I had no spam coming through. I guess best solution is to revert back to older contact form plugin and use Google reCaptcha V2 again.