How to solve page not found problem with pagination in WordPress?

I am new on WordPress and I add the rewrite rule for search in Twenty-Twenty theme, but now the problem is when I go to second page using pagination, it returns 404 error.

Here is the rewrite rule

Please help me to solve this issue.