When the env file is a yaml encoded file and has --- at the document start (which is very common for yaml file as document delimiter), the parser returned error.
This is the go playground code to reproduce: https://go.dev/play/p/zYZxk0ruKVf
Thanks before!