I am also facing the same kind of problem
the app that I did yesterday is working but it had few features so I decided to change the app with much more features by creating new project but getting this kind of error
I have use similar blocks to connect to Bluetooth but facing this issue