I’m not sure that I can give a comprehensive answer, but I will attempt to give you some helpful information.
One of the reasons to bake PCBs is to remove the moisture. I am most familiar with the underfill process on PCB, either flip chip on board or underfill of BGA. In these cases, moisture on the board can cause voiding and de-lamination during cure. From surface mount components, it is also possible to get “pop corning” of components that are attached with surface mount adhesive.
If you stack the boards touching each other, it is likely that you will have to increase the baking time to remove the moisture. Separation of the boards will reduce the needed baking time for moisture removal. I am unaware of any difference the direction of stacking makes.
Baking boards at temperatures above 100C (the boiling point of water) will guarantee that all the moisture will be eventually removed. Higher temperatures will speed up the process.
The amount of pre-bake required depends on the thickness of the board, the amount of latent moisture, and the acceptable level of moisture for the manufacturing process.
If you suspect that you are having moisture in your process, a good way to monitor the moisture level is weight. We often recommend that our customers weigh a small board (or a sample coupon of the same thickness) on a precision balance, pre-bake for two hours at 100 C, allow it to cool, then re-weigh the parts you should be able to note a weight difference. You can use this weight difference to compare other pre-bake temperatures and times. Obviously, thinner boards will require less time.
Depending on your ambient environment, the boards will re-absorb moisture. You can weigh the sample coupon on regular periods after pre-bake to chart the rate of moisture absorption.
Another method of improving the moisture removal process is to use vacuum. Baking the parts at a reduced pressure will speed up the moisture removal, however, I’m not sure this is a production friendly process.