If you limited the configuration so that it can't load PSDrives, this can happen. The shell wants to start in a directory, but if it doesn't have a drive, it can't. And the SmbShare module in particular may have a dependency on being able to access a drive.
Sessions with no drives are usually only accessible by Invoke-Command, which doesn't try to create a prompt. Although, again, if SmbShare has a dependency, you will have to satisfy it.