get_posts not working for custom post type

I have registered a new custom post type ‘podcasts’ (without taxonomy) from the init hook. It is working fine in admin and post pages are created and visible:

function my_podcast_post_type() {
            $labels = array(
                'name'                => __( 'Podcasts' ),
                'singular_name'       => __( 'Podcast'),
                'menu_name'           => __( 'Podcasts'),
                'parent_item_colon'   => __( 'Parent Podcast'),
                'all_items'           => __( 'All Podcasts'),
                'view_item'           => __( 'View Podcast'),
                'add_new_item'        => __( 'Add New Podcast'),
                'add_new'             => __( 'Add New'),
                'edit_item'           => __( 'Edit Podcast'),
                'update_item'         => __( 'Update Podcast'),
                'search_items'        => __( 'Search Podcast'),
                'not_found'           => __( 'Not Found'),
                'not_found_in_trash'  => __( 'Not found in Trash'),
            );
             
            $args = array(
                'label'               => __( 'podcasts'),
                'description'         => __( 'My Podcasts'),
                'labels'              => $labels,
                'supports'            => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields'),
                'hierarchical'        => true,
                'public'              => true,
                'show_ui'             => true,
                'show_in_menu'        => true,
                'show_in_nav_menus'   => true,
                'show_in_admin_bar'   => true,
                'menu_position'       => 5,
                'can_export'          => true,
                'has_archive'         => true,
                'exclude_from_search' => false,
                'publicly_queryable'  => true,
                'capability_type'     => 'post',
                'show_in_rest' => true,
         
            );
            register_post_type( 'podcasts', $args );
    }

When I want to fetch the list of posts through get_posts(), it is returned empty. Here are the arguments I am passing to get_posts():

Array
(
    (parent) => 0
    (exclude_tree) => 1
    (sort_order) => DESC
    (sort_column) => menu_order, post_modified
    (post_type) => podcasts
    (post_status) => publish
    (posts_per_page) => 5
    (offset) => 1
    (post_parent) => 
)

What am I doing wrong? Thanks in advance.