I found out the error is thrown because of the multiple ‘.’ present in the filepath of the file.
I don’t know if the error is on the weweb side of things or supabase, haven’t investigated that yet.
I’ve found a workaround, so in case anyone else encounters that problem, use a custom javascript sniplet to remove the dots and only keep the extension. Working fine for me so far.