There will be a designated school official at your educational institution who is competent in addressing questions like these.
Building time in itself does not require an M-1 visa. However, an alien admitted under an M-1 visa must remain in full-time attendance until successfully completing the course of study. This means hour building, done outside the institution named on the visa, must be incidental. Except that after completing the course, including practical training if any, there will be a 30-day grace period (60 days in the case of the F-1 visa) during which attendance isn't required. See SEVIS Help Hub (
link).