Throw Error message in lifecycle hook doesnt change the error message display in the UI

for custom notification message, Maybe you need to override Notification component in admin
.cache/admin/src/components/Notifications/Notification/index.js