General Motors will temporarily shut down eight of its 15 North American assembly plants due to a microchip shortage that automakers need to build vehicles.