under- or over-proofed bread will change the "crumb" of the bread but has nothing to do with food safety. if it is baked fully it will be safe even if it's a little dense or too airy.