The M4 was closed eastbound near Heathrow Airport following a crash but lanes have since reopened.