following on that, land drills, land drills, land drills. Part of this is perceptual narrowing because you are having to focus on the actual laying line bit in terms of tie offs and placements.
@cerich uses a great analogy where every diver has a dollar to spend which amounts to your total focus ability. Someone like Chris,
@mer, or
@kensuf are using maybe a penny on things like buoyancy/trim/propulsion, at this point in their diving careers it is natural but someone new to Cave 1 may be having to spend say 20 cents on fundamental skills just due to experience because they're trying to read the cave, adjust their trim to match the profile, keep their buoyancy spot on so they can lay the line, etc etc.
You now have another dime added in of just new environment jitters which are completely normal, another dime allocated to paying attention to your buddy, and if you have a half dollar allocated to placement of the line then you have over 3/4 of your attention allocated and that doesn't leave a whole lot of room left. With time and experience this allocation will come down, but know that you are not alone and that this is completely normal in the start of a cave class.
One thing that we teach that applies to all aspects of life is that if the world starts to feel like it is spinning it's your job to put the brakes on and make the world move at your pace, there is exactly a 0% chance that when it starts spinning that you can keep up so don't try. This ties exactly into what Ken said, an instructor isn't going to brow beat you for taking 5-10mins to put a line in if it is put in properly and comfortably but when you start to huff and puff your judgement gets clouded by increased CO2 and you are probably making mistakes in terms of your placements and that will come back to you in debrief.
Slow and relaxed with good technique, be quick but never hurry