Hi Peter,
Thank you for your help.
I added the LiteSpeed noabort rule to the main .htaccess file as described in the Wordfence documentation.
After that, I ran a new Wordfence scan and it completed successfully.
The scan processed 19,443 files and finished in about 6 minutes. Previously, it repeatedly stalled after approximately 200–1,400 files.
So in this case, the LiteSpeed noabort configuration resolved the issue.
Thank you again for your assistance.