You must ensure that your PC does not go into sleep mode in order to prevent Microsoft teams from automatically changing your status. Microsoft assumes that you are no longer using the platform when your PC goes to sleep or idle mode, and it changes your status to away.