Thanks. It did not help. I split notify to separate file similar to what you have. And get the same error.
I suspected it’s related how automation is called, it cannot find automation profile
The legacy notify platform will expose a generic notify action that can be called to send notifications.
and
Be aware that the notify.notify action is shorthand for the first notify action the system can find. It might not work as intended. Choose a specific action to make sure your message goes to the right place.
Solved it.
Per this post, this error is reported FOR ANY SMPT error. Once I enabled debug, i saw the problem.
The error should state that it’s related to STMP dialog, NOT caused by finding profile