The Rail Accident Investigation Branch has released a report into an unsafe train movement in May 2023.