A junction of the M4 near the Severn Bridges is set to close in one direction overnight.