Hi Dipak,
To mitigate the risk of failing and accumulating unprocessed message in EVM tables.
First, schedule the below batch job to run every 15 or 30 mins.
Program /SAPTRX/PROCESS_LOCKED_EHS - Locked EH Message Processors
Second, Schedule this batch job program /SAPTRX/DELETE_UNPR_MSG in background and specify the residence time (RT) in days for example 120 days. If you don't give residence time, then system takes default 100 days. It will delete unprocessed messages belong to inactive EH older than residence time.
Before deleting any messages or event handlers, you followed the archiving and deleting strategy because once you delete permanently then you can't retrieve the message.
Regards
GGOPII