Safari not opening local html files after upgrading to macOS Catalina Beta

Solution 1:

It turns out that Safari did not have permission to read my html files. Go to

System Preference > Security & Privacy > Privacy > Full Disk Access

and add safari. (Answer taken from comment.)