I ran into a similar problem last week. knew i was about to run out of filament so I went to change the filament but when my printer restarted it was slightly out of alignment on the new lines. It was disappointing. so I aborted the print. then in PRUSA slicer I cut the model at the last printed line as per the display and started printing the top bit separately. I plan on crazy glueing or 5min epoxy the two pieces together. way better than having to toss the print especially with it having already been a 20 hour print. it will be sanded, filled and painted anyway so should be invisible when done.