The string_to_array call in detect_fixed_layout_epub() had an extra closing parenthesis after the '<img' delimiter, causing a SQL syntax error that prevented the database container from initializing: IF array_length(string_to_array(opf_content, '<img')), 1) - 1 > 50 Fixed to: IF array_length(string_to_array(opf_content, '<img'), 1) - 1 > 50