Exclude current post when getting related post on custom post type and taxonomy

Simply add

'post__not_in' => [get_queried_object_id()],

to your array of query arguments. get_queried_object_id() will return the post ID of the currently viewed single post, and post__not_in will skip the posts whos ID’s was passed as an array to the parameter

tech