Anyone, Please help me with this error!

read the error and find where you use those commands and check what value you are using

I have put my URI(connectionString) as a string in .env file and still this error occurs

Some common solutions to the error you have in this stackoverflow post.

I have read but none of them helped.

Have you installed and required in your package the dotenv package?

It really help if you provide your full code.