Bay State tech companies big and small had an abrupt awakening this year as market uncertainty and other factors prompted layoffs.