Go stir-crazy

To become anxious because one is confined to a small space.

After many days of rain I began to go stir-crazy because I could not leave the house.