Found a solution on how to unbrick the board. You can use the flashmagic tool and select a processor with a similar enough flash and RAM memory to flash a new program on the board. There is no individual support for the LPC5536.I used the LPC55S66 processor over UART setting. To set the board in ISP mode go to page 909 on the reference manual. To find the UART pins go to page 910 on the reference manual(both in Boot Rom chapter). I am still curious as to why changing the register bricks the SWD programming.