Ok, i can confirm that the problem happens with other emulators. About 5 mins into castlevania bloodlines on megadrive the framerate dropped for a few seconds then the controller disconnected and keyboard wouldn’t respond.
Another thing i thought, i have a 1st gen model B so it only has 256MB of ram, could it be that retropie is trying to use too much ram or somthing?