hey, thank you for replying. I think this is because of the archive pages pagination. on my site, I had selected to show 5 posts per page, so that created the pagination.
well, I changed that option from WordPress to 20 posts per page. After that, all these kinds of indexed pages in google search results show a 404 error.
Now I have removed those 404 error URLs from the search console.
so I think this is because of the pagination.
Also, I need advice, is it bad for SEO if these kinds of paginated URLs are indexed in google. will it hurt my rankings or create a duplicate content error.