XBOX ONE og wont run any online games

i’ve had a few problems with my xbox one but this one is really problematic. i’ve tried to run halo 5, halo reach, gta v, splitgate and, rainbow 6 siege and the console wont even got to the lobby. the only game that works is minecraft and even that shuts it off sometimes. i’ve cleaned the console about 4 times and it still has trouble. any advice?