[arm] Fix an assert caused by large offsets. Fixes #17208.