Moderna announced a large layoff the day before the vaccine maker was set to release second-quarter results.