Roy has taken a short break from cricket to spend time with his family.
He will miss the start of the County Championship after pulling out of the Indian premier league.
Roy was going to play for a new franchise.
"After more than two years living under Covid restrictions and in a number of bubbles, I feel now is the right time to be with my wife and young children," he told the Surrey website.
Roy is expected to miss the early rounds of the competition because of his illness.
Alec Stewart, the club's director of cricket, said that everyone at the club was behind the decision of the player to step away from the game for a period of time to be with his family.
When he is ready to return to cricket, we will be here to help and prepare him for his upcoming challenges.
England will play the Netherlands in a one-day international on 17 June.