Thanks for the comments! Yeah, the retransition from D minor to A minor is one of the spots I was concerned about. I had originally written it with a B flat 7 instead of an F7 in the second ending. So, the A7 resolving by deceptive cadence to a B flat, which then gets reinterpreted as a Neapolitan chord to lead to the dominant in A minor. But the modulation sounded too quick and unconvincing to me, so I tried to the F7 (functioning as a German sixth) instead, but I worry that the logic of the A7 -> F7 is weak. I've listened to it a bunch and go back and forth on whether I think it works. I may try tinkering with it. Thanks for the suggestions!