It's not a betrayal his intentions from the start was to kill him and take the swordI don't understand the motivation behind the glasses betrayal to mc but in the raw glasses's lover got killed by scumbag in dungeon. Glasses was weak and used to be a porter too.
also he explained himself why he's doing all of this (well the mc states why)