Is the Terminal opening up automatically when you boot & login, or are you opening the Terminal app yourself to issue some commands?
Something you installed has modified the .zprofile file. What app was last installed just before this message appeared?
Or were you using Terminal commands you found online?
You will need to post the contents of the hidden .zprofile file here. Within the Finder, click on the home user folder which has an icon of a house on the sidebar which will have the short username of your account. Now press Shift + Command + Dot (aka period which looks like " . ") which will toggle hidden files on & off which will allow you to see the .zprofile file. It helps if you in the forum editing window you highlight the copied text and then click on the "Code Insertion" tool located on the forum editing toolbar which looks like "</>" so that the text is easier to read. Only do this for the copied text from the .zprofile file....leave the rest of your post as the default formatting. You may be able to first click the "Code Insertion" tool, then paste the contents into the gray line which appeared. Using the Code Insertion tool for the pasted contents also makes it easier to separate out the contents of the file from the rest of your post.