Is there any way to disable the screen recording? or is it possible through a configuration profile? or any third party library is available?
How to disable screen Recording or Capturing in MacOSx (Cocoa) application?
That's not possible, AFAIK.
You can disable screen capture manually:
h ttps://osxdaily.com/2019/08/02/disable-screenshot-thumbnail-preview-mac/
But you will not prevent someone to shoot a photo of the screen, so what's the interest ?