Hi Wesley,
A 40 unit apartment building is pretty big. I think its possible to do with it with a single large unit, but it would be hard for all the reasons already mentioned.
Having individual heating sources would be better in terms of redundancy, but probably more expensive at first. If one went down, you only have one apartment without heat, if the big unit went down, you would have a whole building without heat.
I would probably look at ultra insulating the building first. This would seriously bring down the heat needed to keep warm. Just make sure it is a vapor permeable (aka breathable) insulation, or you will have mold issues.
Could you utilize unpressurized hot
water storage tanks maybe? Obviously room is an issue with any of these options, but could you have 2-4 big units that heat water. Then each apartment would have their own 1000 gallon hot water storage tank for heat and domestic hot water. In this way, you can get some economies of scale with the bigger heat sources, still allow each apartment to have its own level of heat, and you have a buffer in the tank in case you can't heat the water for some reason. Also, an unpressurized hot water storage tank can have multiple sources of heat. So you could add in some
solar hot water
heaters, heat pump heaters, oil heaters, wood boiler heaters, geothermal.... as long as you can pump water through the heat exchanger, it doesn't matter where the heat is coming from... gives a lot of flexibility to use whatever fuel is the cheapest at the time. Obviously I think some of those fuel options are better than others... but with a tank... you can run whatever you have at its peak efficiency, and then shut it off for a while... which I think is a step in the right direction regardless.