Massachusetts collected $2.56 billion in taxes in October, 8.3% more than in October 2022 but less than the state’s revenue projection, according to the state tax department.