Hi Chetan,
Which statement are you referring in docs? I do not see such recommendation and btw steps in document is correct way to customize 404/403.
Coming to SAML from aem 6.2 on wards you can customize the error page. By default it goes to login page with error message. If you are using previous version please reach out to support team to get feature pack to backport custom error handling page.
Thanks,