ERROR 9015 when attempting to create an index

Hi all,

I am having an issue with my D1 database. When attempting to index one of the columns (TEXT) I get the error below:
ERROR 9015: SQL engine error: query error: Error code 11: The database disk image is malformed (database disk image is malformed) when I try to create an index:

CREATE INDEX idx_teams_team_name ON teams(team_name);

Any idea what can I do to get around this? The table has about 90k rows, I surely need an index to search on this column.