This shows that you don’t have custom post types which use user capabilities different from defined by WordPress for posts: edit_posts, etc.
If you wish to force all existing custom post types to use their own user capabilities, like ‘edit_videos’ for ‘videos’ custom post type, etc., then go to “Settings->User Role Editor->Additional Modules” and turn ON the “Force custom post types to use their own capabilities” checkbox.
Pay attention then Media Library items will require ‘edit_attachments’, instead of ‘edit_posts’ after that.