Print not adhering to printbed properly

I was trying to print something and it went a bit wrong, I don’t really know what happened here but I assumed its not sticking to the bed properly since its doing some warp upwards as soon as the printer did the outer layer of the brim. I tried to let it continue to see if it would sort itself out, but it started doing wrong stuff so I had to cancel it shortly after.

The real annoying problem I am seeing is in the top right corner of the print (sorry if its hard to see) and is doing all sorts of elevation causing potential issues with the printhead passing over it.