Collective flow observables are known to be a sensitive tool to gain insights on the equation of state of nuclear matter from heavy-ion collision observations. Towards more quantitative constraints one has to carefully assess other influences on the collective behavior. In this work a hadronic transport approach smash (simulating many accelerated strongly interacting hadrons) is applied to study the first four anisotropic flow coefficients in $\text{Au}+\text{Au}$ collisions at ${E}_{\mathrm{lab}}=1.23A$ GeV in the context of the recently measured data by the HADES Collaboration. In particular, the formation of light nuclei is important in this energy regime. Two different approaches are contrasted to each other: A clustering algorithm inspired by coalescence as well as microscopic formation of deuterons via explicit cross sections. The sensitivity of directed and elliptic flow observables to the strength of the Skyrme mean field is explored. In addition, it is demonstrated that the rapidity-odd ${v}_{3}$ coefficient is practically zero in this energy regime and the ratio of ${v}_{4}/{v}_{2}^{2}$ is close to the value of 0.5 expected from hydrodynamic behavior. This study establishes the current understanding of collective behavior within the smash approach and lays the ground for future more quantitative constraints on the equation of state of nuclear matter within improved mean-field calculations.