CameraWebServer Example ESP32-CAM Error - Guru Mediation Error

Hi,
I bought an ESP32-CAM with OV2640 and an FT232RL FTDI board. I tried an introductory sketch, “WiFiScan” and this worked fine. However, when I tried to follow this tutorial (ESP32-CAM Video Streaming Web Server (works with Home Assistant) | Random Nerd Tutorials) I managed to upload the script but was unable to obtain the correct output from the serial monitor and I received the following error:

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400db308: ffffffff ffffffff ffffffff
Core 0 register dump:
PC : 0x400db30c PS : 0x00060e30 A0 : 0x800d776c A1 : 0x3ffbb9f0
A2 : 0x00000001 A3 : 0x00000001 A4 : 0x3ffc2900 A5 : 0x00000000
A6 : 0x00000080 A7 : 0x00000000 A8 : 0x800852c1 A9 : 0x3ffbb9d0
A10 : 0x3ffc2900 A11 : 0x00c86016 A12 : 0x3ff49060 A13 : 0x00000000
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000017 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000000

Backtrace: 0x400db30c:0x3ffbb9f0 0x400d7769:0x3ffbba20 0x400d34c8:0x3ffbba40 0x400d3441:0x3ffbba60 0x400d3db3:0x3ffbba80 0x400d73ae:0x3ffbbab0 0x4008db91:0x3ffbbad0

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371

Some people from a google search seemed to have problems with the power supply so I tried powering the ESP32_CAM from an external power supply (5V 1A) while keeping the USB plugged into the FTDI but this resulted in no output from the serial monitor.

I am very new to this and so any pointers would be really appreciated, thanks!