I'd be most concerned about that line - it should NEVER happen.
It's about 99.9% liable to be a camera issue and probably sensor related.
VERY occasionally the most unlikely problems can be caused by lens contact issues (it seems the electronics can become 'confused' in ways that make no apparent sense). So, turn the camera off, and try unlocking the lens, turning and reseating it a few times and see if this eliminates the problem. This causes the contacts to re-seat and occasionally very minor oxidation or contamination can cause problems.
Also, just breaking and remaking the lens circuitry as above may 'descramble' the camera's microcontroller's mind - you'd hope that cameras never 'crash' - but it does happen. I've seen very strange problems cured in this manner.
Finally, turn off camera, remove battery, leave a few tens of seconds, replace battery, turn on again and try a full camera reset (an option available in a usually obscure menu). This is getting somewhat desperate but is worth doing before committing a camera for warranty repair. Faults as solid and repeatable as the purple line fault should not be caused by errant software but, with software, almost anything can happen, and sometimes does.
If none of the above fully and permanently cure the purple line problem, a warranty repair is in order. While they have the camera, if the spots you mention were there from new, ask them to clean the sensor as well. (If they do not replace it due to the line).