The Cricket Discipline Commission sanctioned the World Cup-winner for breaching ECB directive 3.3. Roy has since admitted a charge of "conducting himself in a manner which may be prejudicial to the interests of cricket or which may bring the game of cricket, the ECB and himself into disrepute".
The ban is suspended for 12 months, but the full details of the breach have not been fully disclosed.
The ECB confirmed "(Roy is) suspended from the next two England matches for which he is eligible for selection, but that such suspension be suspended for 12 months dependent on good behaviour".
The 31-year-old recently took a break from cricket after pulling out of Indian Premier League side Gujarat Titans, citing bubble fatigue.
Roy is expected to be in England's T20 World Cup side in Australia later this year. He played an important role in England's maiden 50-over World Cup success in 2019 and has been a mainstay of the limited-over sides.