This members-only tutorial provides the steps to use pre_get_posts in a Code Block above a Repeater or Easy Posts component to limit posts to only those in the same category as the current post while excluding the current post being viewed.
We shall set up the above in an Oxygen Template that applies to singular posts to show a x number of related posts in a "sidebar".
Screenshot of "Vero aut inventore" category in WP admin
Step 1
Create/edit the Oxygen Template that applies to all singular posts.
Add a Section having a Columns component with 60 40 arrangement.
[optional] Select the left Column Div and change the width to 70%. That will automatically change the right Div's width to 30%.
In the left Div show post's content by either adding an Inner Content component or + Add > WordPress > Dynamic Data > Content.
In the right Div add a h3/h4 Heading reading say, "Related Posts".
Add an Easy Posts component (or a Repeater if you wish, in this example we shall use EP).