After several days of use, I will get the following message whenever I try to open up a new tab or window:
Warning: A session ended very soon after starting. Check that the command in profile "Default" is correct.
I can still combine, separate, and move tabs to windows and long as they aren't new. If I close iTerm2 and reopen it, the issue will go away for a while until it happens again. Is there a way for me to figure out what is causing this to happen? I don't think it's a memory issue as I have 64GB of RAM, with over half free most of the time, and a little over 1TB of free drive space. It seems like it might be some weird resource issue. The problem has followed me over a few OS upgrades. It might be a hardware issue, but I haven't gotten anything to reliably fail any tests except iTerm2 doing this.