Your issue stems from LinkedIn’s restricted access to certain API permissions, especially r_liteprofile and w_member_social, which require your app to be approved for specific LinkedIn products—not just implementing the OAuth flow correctly.
r_liteprofile
w_member_social