For the whole wheat bread, try increasing the hydration a bit. The recipe you posted has a hydration of about 69%. I made a bread the other day in a bread machine with 100% store-bought whole wheat that turned out great, 87% hydration.
A bread collapsing during baking may have too much yeast, in my experience.