Follow the advises here https://github.com/andrewhickman/fs-err/issues/71#issuecomment-3533088913 and use https://github.com/andrewhickman/fs-err to improve error generation messages