First pix. You need a sacrificial piece at the end of a run like this one so the bearing doesn't make the turn around the corner. Second picture; may be that the router tipped a bit. Not always easy to keep it stable. This is even more frequent when working on an edge held vertically. Making several shallow passes, rather than taking it off in one pass, will reduce the pressure you have to keep on the router, which will help you keep it's base flat on the workpiece.
The more I do, the less I accomplish.