The train operator has "launched an investigation" into an incident that saw a staff member working alone become unwell.