Cherry-pick of 'fixATLASRECTS-8094'
LArLATOMEDecoder: check vector-size before writing
See merge request !75248 (merged)
(cherry picked from commit ea587a73)
04065cb1 check vector-size before writing 3d4edbcc reformat as requested by MR review 6da4b66f ERROR -> WARNING
Co-authored-by: Duc Ta duc.bao.ta@cern.ch