[OJS-3.3.0-14] Unable to attached Reviewer Comments in Revision Request email

OJS-3.3.0-14
PHP-8.1

We have many journals, but in one of them, if I add Reviewer Comments to the Revision Request email to the author, it is not getting attached to the body of the email. If I check the error log the below mentioned error was generated.

PHP Fatal error:  Uncaught TypeError: ksort(): Argument #1 ($array) must be of type array, bool given in /EPUB/ojs/lib/pkp/classes/controllers/modals/editorDecision/PKPEditorDecisionHandler.inc.php:282
Stack trace:
#0 /EPUB/ojs/lib/pkp/classes/controllers/modals/editorDecision/PKPEditorDecisionHandler.inc.php(282): ksort()
#1 /EPUB/ojs/lib/pkp/classes/core/PKPRouter.inc.php(395): PKPEditorDecisionHandler->importPeerReviews()
#2 /EPUB/ojs/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest()
#3 /EPUB/ojs/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPComponentRouter->route()
#4 /EPUB/ojs/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()
#5 /EPUB/ojs/index.php(68): PKPApplication->execute()
#6 {main}
  thrown in /EPUB/ojs/lib/pkp/classes/controllers/modals/editorDecision/PKPEditorDecisionHandler.inc.php on line 282