There are several authoritative resources and technical papers available in PDF format that cover the dynamics and simulation of flexible rockets
Modern launch vehicles (e.g., SpaceX Starship, SLS, Ariane 6) are to maximize payload fraction. This structural flexibility introduces critical dynamics: dynamics and simulation of flexible rockets pdf