Rail firms GWR and LNER warn of issues on long-distance routes after cracks were found on some trains.