A major stretch of the M4 is set to close this week, affecting more than 100,000 drivers.