In order to add the BLE DFU service, I need to increase the GATT table size and therefore memory as mentioned here: How can i increase the GATTS attribute Table Size?.
However, when I tried to increase the file ble_app_uart_gcc_nrf52.ld, increasing RAM origin and length values cause the program to just crash on start up.