Can not edit collection type item in the admin panel

On admin load I got popup error message An error occurred with console error
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

When I add some images to gallery in the admin panel (Product content type), I get error popup message:
An error occurred during record fetch.

I get an error in console also

​​​message: "insert into `upload_file_morph` (`field`, `order`, `related_id`, `related_type`, `upload_file_id`) values ('gallery', 4, 134, 'components_product_colors', '[object Object]') - ER_TRUNCATED_WRONG_VALUE_FOR_FIELD: Incorrect integer value: '[object Object]' for column `strapi_db`.`upload_file_morph`.`upload_file_id` at row 1"

With this I can’t edit an item.

System Information
  • Strapi Version: 3.3.3
  • Operating System: Ubuntu 18.04.4 LTS
  • Database: MariaDB 10.5.4
  • Node Version: 14.15.0
  • NPM Version: 6.14.5
  • Yarn Version: 1.22.4

What were you doing when that error came up?

I have restarted Strapi service, recreated the item at the admin panel, and all problems gone.