A Waltham-based startup is among the last tech companies in Massachusetts to squeeze in layoffs in the first half of 2023.