You have to learn to play better position to keep the cue ball in the middle of the table and off the rails.
That's not a solution... I knew a guy who had a table in his home but the walls were close to the short rails so there wasn't enough room to cue a frozen cue ball (not even frozen in fact, you couln't cue the shot if the cue ball was 1,5 ball away from the short rail). Even tho you can argue that your posision play could be better, it still creates a "safe zone" in the table. If he run out of position he would simply leave the cue ball on the short rail area and I couldn't cue it at all, even if i could see the ball... That ruined the game for me and i couldn't enjoy it...