after several tense moments , david was able to rebuild the barrier on the part of his mind that was a tempest of chaotic nightmares-images that beat at his sanity until only a bubble-thin film remained .